﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;

namespace CrusadeGmTool.Net
{
   public class SocketState
    {
       private Socket _socket;
       private byte[] _buffer;
       private int _dataLength;

        #region properties
       public Socket Socket
       {
           get { return _socket; }
       }

       public byte[] Buffer
       {
           get { return _buffer; }
           set { _buffer = value; }
       }

       public int DataLength
       {
           get { return _dataLength; }
           set { _dataLength = value; }
       }
        #endregion

       public SocketState(Socket socket, int bufferSize)
       {
           _socket = socket;
           _buffer = new byte[bufferSize];
           _dataLength = 0;
       }
    }
}
